<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
<head>
<title><s:property value="#session.titleDesc"/></title>
<%@ include file="/common/meta.jsp"%>
</head>
<body>
<%@ include file="/common/center-top.jsp"%>
<!-- 网页主显示区，填写表单 -->
<div class="titleDiv">商品类目信息</div>
<table class="tableFrom" align="center" cellpadding="0" cellspacing="1">
	<tr>
		<td class="tdLabel">类目名称</td>
		<td class="tdInput">${product.category.name}</td>
	</tr>
	<tr>
		<td class="tdLabel">类目描述</td>
		<td class="tdInput">${product.category.description}</td>
	</tr>
</table>
<div class="titleDiv">商品基本信息&nbsp;&nbsp;<a target="_blank" href="${product.url}">点击查看原商品</a></div>
<table class="tableFrom" align="center" cellpadding="0" cellspacing="1">
	<tr>
		<td class="tdLabel">名称</td>
		<td class="tdInput">${product.name}</td>
		<td class="tdLabel">编码</td>
		<td class="tdInput">${product.code}</td>
	</tr>
	<tr>
		<td class="tdLabel">价格</td>
		<td class="tdInput">${product.price}</td>
		<td class="tdLabel">价格单位</td>
		<td class="tdInput">${product.priceUnit}</td>
	</tr>
	<tr>
		<td class="tdLabel">重量</td>
		<td class="tdInput">${product.weight}</td>
		<td class="tdLabel">重量单位</td>
		<td class="tdInput">${product.weightUnit}</td>
	</tr>
	<tr>
		<td class="tdLabel" colspan="4">描述</td>
	</tr>
	<tr>
		<td class="tdInput" colspan="4">${product.description}</td>
	</tr>
</table>
<div class="titleDiv">商品属性信息</div>
<table class="tableList" cellspacing="1" cellspacing="0" cellpadding="0">
	<tr>
		<th>属性项</th>
		<th>属性值</th>
		<th>中文属性项</th>
		<th>中文属性值</th>
	</tr>
	<s:iterator value="product.attrs" var="uvar">
		<tr>
			<td>${uvar.optionName}</td>
			<td>${uvar.optionValue}</td>
			<td>${uvar.nameCode}</td>
			<td>${uvar.valueCode}</td>
		</tr>
	</s:iterator>
</table>
<div class="titleDiv">商品图片信息</div>
<table class="tableList" cellspacing="1" cellspacing="0" cellpadding="0">
	<s:iterator value="product.images" var="ivar">
		<tr>
			<td><img src="${imgCenterHttp}${ivar.localPath}"/></td>
		</tr>
	</s:iterator>
</table>
<%@ include file="/common/center-down.jsp"%>				
</body>
</html>
